﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

using JM.JCY.Common;
using JM.JCY.DataAccess;
using JM.JCY.BusinessEntity;
using JM.JCY.BusinessEntity.PPSM2007;

namespace JM.JCY.BusinessComponent
{
   public  class PPSM2007BC: JCYBusinessComponentBase<PPSM2007DA>
    {
       public PPSM2007BC()
           : base(new PPSM2007DA())
        {

        }
       public PPSMUserInfoDataSet.UserInfoDataTable GetUserInfoByName(string userName)
       {
           var da=new PPSM2007DA();
           return da.GetUserInfoByName(userName);
       }

       public PPSM2007CodeDataSet.T_PPSM2007CODEDataTable GetCodeDescByCategoryAndValue(string category, string value)
       {
           var da = new PPSM2007DA();
           return da.GetCodeDescByCategoryAndValue(category, value);
       }

       public PPSM2007CodeDataSet.T_PPSM2007CODEDataTable GetPPSM2007CodeTable()
       {
           var da = new PPSM2007DA();
           return da.GetPPSM2007CodeTable();
       }

       public PPSMUserInfoDataSet.UserCareerDataTable GetCareerByName(string userName)
       {
           var da = new PPSM2007DA();
           return da.GetCareerByName(userName);
       }

       public PPSMUserEduInfoDataSet.UserEduInfoDataTable GetEduInfoByName(string userName)
       {
           var da = new PPSM2007DA();
           return da.GetEduInfoByName(userName);
       }

       public PPSMUserEduInfoDataSet.UserTrainDataTable GetTrainInfoByName(string userName)
       {
           var da = new PPSM2007DA();
           return da.GetTrainInfoByName(userName);
       }

       public PPSMUserRelationDataSet.UserRelationDataTable GetRelationInfoByName(string userName)
       {
           var da = new PPSM2007DA();
           return da.GetRelationInfoByName(userName);
       }

       public PPSMUserAssessmentDataSet.UserAssessmentDataTable GeAssessmentInfoByName(string userName)
       {
           var da = new PPSM2007DA();
           return da.GeAssessmentInfoByName(userName);
       }
       public PPSMUserAssessmentDataSet.UserGloryDataTable GeGloryInfoByName(string userName)
       {
           var da = new PPSM2007DA();
           return da.GeGloryInfoByName(userName);
       }

       public PPSMUserAssessmentDataSet.UserPunishInfoDataTable GetPunishInfoByName(string userName)
       {
           var da = new PPSM2007DA();
           return da.GetPunishInfoByName(userName);
       }
    }
}
